﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Solution.Business.Entities;
using Solution.Data;

namespace Solution.Business.Component
{
   public  class NewsComponent
    {
        private static NewsDAC db = new NewsDAC();

        public static List<News> News_GetByTop(string Top, string Where, string Ord)
        {
            return db.News_GetByTop(Top, Where, Ord);
        }

        public static void News_Insert(News news)
        {
            db.News_Insert(news);
        }

        public static void News_Update(News news)
        {
            db.News_Update(news);
        }
    }
}
